home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / bbs / pad321.zip / HACKS.MH < prev    next >
Text File  |  1996-06-21  |  890b  |  48 lines

  1. #ifndef __INFO_MH
  2. #define __INFO_MH
  3.  
  4. #ifndef __MAX_MH
  5. #include <max.mh>
  6. #define __MAX_MH
  7. #endif
  8.  
  9. #ifndef __MAX_MENU_MH
  10. #include <max_menu.mh>
  11. #define __MAX_MENU_MH
  12. #endif
  13.  
  14. long getBaudRate () {
  15.   long: temp;
  16.   string: stemp;
  17.   stemp := input;
  18.   input := "";
  19.   menu_cmd (MNU_KEY_POKE, "%b");
  20.   temp := strtol (input);
  21.   input := stemp;
  22.   return temp;
  23.   }
  24.  
  25. int getPortNum () {
  26.   int: temp;
  27.   string: stemp;
  28.   stemp := input;
  29.   input := "";
  30.   menu_cmd (MNU_KEY_POKE, "%p");
  31.   temp := strtoi (input);
  32.   input := stemp;
  33.   return temp;
  34.   }
  35.  
  36. //void writelnDirect (string: output) {
  37. //  int: handle;
  38. //
  39. //  vidsync ();
  40. //  handle := open ("CON", IOPEN_WRITE);
  41. //  writeln (handle, output);
  42. //  close (handle);
  43. //  if (output = "") shell (IOUTSIDE_DOS | IOUTSIDE_RUN, "echo.");
  44. //  shell (IOUTSIDE_DOS | IOUTSIDE_RUN, "echo " + output);
  45. //  }
  46.  
  47. #endif
  48.